<% @page_title = "已经结束的活动 | 多背一公斤 - 灾后学校重建计划" -%>

<% content_for :sidebar do -%>
  <h2><%= link_to "发布一个新活动", new_event_path(:ref => 'dizhen.1kg.org'), :target => "_blank" %></h2>
  <%= render :partial => 'category', :locals => {:categories_count => @categories_count, :status => 'over'} %>
  
  <h2>大家要去哪 <%= title_suffix %> </h2>
  <%= render :partial => 'users_go_where', :locals => {:participations => @participations} %>
<% end -%>

<h1>活动</h1>
<h2>全部活动 <%= title_suffix %>(<%= link_to "最新的活动", {:controller => '/dizhen/events', :action => 'index'}, :class => "h2l" %>)</h2>
<% @events.each do |event| -%>
  <%= render :partial => 'event', :object => event %>
<% end -%>
<%= will_paginate @events %>